/******************************************************************************/
/* Имя файла: sizeType.cpp                                                    */
/* Дата: 10-03-2024                                                           */
/* Разработчик: Андрей Подлегаев                                              */
/* Группа: 315                                                                */
/* Факультет: ЦДО ТУСУР                                                       */
/* Авторское право: Андрею Подлегаеву                                         */
/* Описание: Функции определения размера типов данных                         */
/* к лабораторной работе №2 (ЦДО ТУСУР)                                       */
/******************************************************************************/

#include "sizeType.h"


void getSizeType()
{
  std::cout << "Размеры основных типов данных С++ в байтах\n";
  std::cout << "bool:\t\t\t" << sizeof(bool) << " bytes\n";
  std::cout << "char:\t\t\t" << sizeof(char) << " bytes\n";
  std::cout << "unsigned char:\t\t" << sizeof(unsigned char) << " bytes\n";
  std::cout << "wchar_t:\t\t" << sizeof(wchar_t) << " bytes\n";
  std::cout << "char16_t:\t\t" << sizeof(char16_t) << " bytes\n";
  std::cout << "char32_t:\t\t" << sizeof(char32_t) << " bytes\n";
  std::cout << "short:\t\t\t" << sizeof(short) << " bytes\n";
  std::cout << "unsigned short:\t\t" << sizeof(unsigned short) << " bytes\n";
  std::cout << "int:\t\t\t" << sizeof(int) << " bytes\n";
  std::cout << "int8_t:\t\t\t" << sizeof(int8_t) << " bytes\n";
  std::cout << "int16_t:\t\t" << sizeof(int16_t) << " bytes\n";
  std::cout << "int32_t:\t\t" << sizeof(int32_t) << " bytes\n";
  std::cout << "long int:\t\t" << sizeof(long int) << " bytes\n";
  std::cout << "unsigned long int:\t" << sizeof(unsigned long int) << " bytes\n";
  std::cout << "long:\t\t\t" << sizeof(long) << " bytes\n";
  std::cout << "long long:\t\t" << sizeof(long long) << " bytes\n";
  std::cout << "unsigned long:\t\t" << sizeof(unsigned long) << " bytes\n";
  std::cout << "float:\t\t\t" << sizeof(float) << " bytes\n";
  std::cout << "double:\t\t\t" << sizeof(double) << " bytes\n";
  std::cout << "long double:\t\t" << sizeof(long double) << " bytes\n";
}
